|
|
@@ -8,7 +8,7 @@ module Agents
|
8
|
8
|
|
9
|
9
|
This Agent will output data at:
|
10
|
10
|
|
11
|
|
- `https://#{ENV['DOMAIN']}/users/#{user.id}/web_requests/#{id || '<id>'}/:secret.xml`
|
|
11
|
+ `https://#{ENV['DOMAIN']}#{Rails.application.routes.url_helpers.web_requests_path(agent_id: ':id', user_id: user_id, secret: ':secret', format: :xml)}`
|
12
|
12
|
|
13
|
13
|
where `:secret` is one of the allowed secrets specified in your options and the extension can be `xml` or `json`.
|
14
|
14
|
|
|
|
@@ -111,7 +111,7 @@ module Agents
|
111
|
111
|
|
112
|
112
|
def feed_url(options = {})
|
113
|
113
|
feed_link + Rails.application.routes.url_helpers.
|
114
|
|
- web_requests_path(agent_id: id || '<id>',
|
|
114
|
+ web_requests_path(agent_id: id || ':id',
|
115
|
115
|
user_id: user_id,
|
116
|
116
|
secret: options[:secret],
|
117
|
117
|
format: options[:format])
|